<?php if($_SESSION['mobile']==1){
 loadview('template/header2_mobile',$data);
}else{?>
<!DOCTYPE HTML>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:og="http://ogp.me/ns#"
	xmlns:fb="https://www.facebook.com/2008/fbml">
<head>
	<BASE href="<?= HOME; ?>" />
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta property="fb:app_id" content="<?php echo FB_ID;?>" />
	<meta property="fb:admins" content="" />
    <?php if($data['og']!=''){echo $data['og'];} ?>
	<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
	<link rel="icon"       type="image/png"       href="favicon.png">
<meta name="keywords"	content="<?php echo2($data[keyword]); ?>" />
<meta name="description"	content="<?php  echo $data[mota]; ?>" />
<title><?php echo $data[title]; ?></title>
<?php if($data['canonical']!=''){ 
echo '<link rel="canonical" href="'.$data['canonical'].'" />';
 }?>
	<link type="text/css" rel="stylesheet" href="public/bootstrap/css/bootstrap.css" />
    <!-- Them menu css and font-awesome -->
	<link type="text/css" rel="stylesheet" href="public/exts/navbar/source/css/sky-mega-menu.css" />
	<link href="public/font-awesome/css/font-awesome.css" rel="stylesheet" type="text/css" />
    <!-- End menu Css -->
	<link type="text/css" rel="stylesheet" href="public/exts/css/select2.css" />
	<link type="text/css" rel="stylesheet" href="public/exts/css/select2-overwrite.css" />
	<link type="text/css" rel="stylesheet" href="public/exts/css/tooltipster.css" />
	<link type="text/css" rel="stylesheet" href="public/exts/css/style.css" />
    <link type="text/css" rel="stylesheet" href="public/exts/css/jRating.jquery.css" />
    <!-- Slider -->
    
    <!-- End slider -->
	<link href="public/exts/preloader/css.css" rel="stylesheet" />
    
    <!-- Van overwrite css -->
    <link  type="text/css" rel="stylesheet"  href="public/exts/css/van.css" />
    <link type="text/css" rel="stylesheet" href="public/exts/css/slider-pro.min.css" />
    <!-- End van overwrite css -->
	<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
	<script type="text/javascript" src="public/exts/js/cookie.js"></script>
	<script type="text/javascript" src="public/exts/js/jquery.scrollUp.min.js"></script>
	<script type="text/javascript" src="public/bootstrap/js/bootstrap.min.js"></script>
	<script type="text/javascript" src="public/exts/js/select2.min.js"></script>
     <script type="text/javascript" src="public/exts/js/jRating.jquery.js"></script>
     <script type="text/javascript" src="public/exts/js/jquery.center.js"></script>
     <script type="text/javascript" src="public/exts/js/jquery.tooltipster.js"></script>
     <script type="text/javascript" src="public/exts/js/lazy.js"></script>
	
     <script type="text/javascript" src="public/exts/preloader/js.js"></script>
    <!-- JS FOR MENU NAVBAR -->
    <script type="text/javascript" src="public/exts/navbar/source/js/jquery.placeholder.min.js"></script>
    <script type="text/javascript" src="public/exts/js/jquery.sliderPro.js"></script>
     <!-- END FOR MENU NAVBAR -->
	<script type="text/javascript">var baseUrl = '<?= HOME; ?>';</script>
	
	<script>
            Royal_Preloader.config({
               mode: 'line',
                background: "#CC181E"
            });</script>
</head>


<body>
	<div id="fb-root"></div>
	<script type="text/javascript">
  // prevent jQuery from appending cache busting string to the end of the FeatureLoader URL 
  var cache = jQuery.ajaxSettings.cache; 
  jQuery.ajaxSettings.cache = true;
  // Load FeatureLoader asynchronously. Once loaded, we execute Facebook init 
  jQuery.getScript('http://connect.facebook.net/vi_VN/all.js', function() {      
    FB.init({appId: '<?php echo FB_ID;?>', status: true, cookie: true, xfbml: true});    
  });
  // just Restore jQuery caching setting
  jQuery.ajaxSettings.cache = cache;
</script>

	<div id="wrapAll">
    <!-- Start Main Nav -->
   	 <div class="wrap_header"> 
		<nav class="navbar navbar-inverse navbar-1 my-navbar" role="navigation">
        <!-- Brand and toggle get grouped for better mobile display -->
        <div class="navbar-header">
            <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
                <span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span><span
                    class="icon-bar"></span><span class="icon-bar"></span>
            </button>
            <a class="navbar-brand" style="background:#015FA3" href="<?php echo HOME; ?>"><img style="height: 40px; margin-top: -7px;" src="<?= HOME . '/public/images/logo_small.png'; ?>" alt="TruyenCuaTui" /></a>
        </div>
        <!-- Collect the nav links, forms, and other content for toggling -->
        <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
            <ul class="nav navbar-nav">
                <li ><a href="<?php echo HOME;?>">MANGA</a></li>
                  <li><a href="<?php echo HOME;?>video"><i class="fa fa-youtube-play"></i> Video</a></li>
                  <li><a href="<?php echo HOME;?>blog"><span  class="glyphicon glyphicon-list-alt"></span> Blog</a></li>
                    <li ><a href="http://up.manga24h.com">Upload Ảnh</a></li>
                 <li class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown">Hỗ Trợ 
                </a>
                    <ul class="dropdown-menu">
                        <li><a href="http://truyencuatui.info/blog/18/Huong-Dan-Upload-Manga-tai-TCT.html">Hướng Dẫn Upload Và Đăng Truyện</a></li>
                        <li><a href="http://truyencuatui.info/blog/14/Dang-Ky-Upload-Truyen-Tai-TCT-va-Manga24h.html">Đăng Ký Upload</a></li>
                     
                        <li class="divider"></li>
                        <li><a href="<?php echo HOME;?>blog/c2/Thong-bao-huong-dan" class="text-center">View All</a></li>
                    </ul>
                </li>
                
                <li class="dropdown">
                	<a href="#" class="dropdown-toggle" data-toggle="dropdown">Theo dõi <b class="caret"></b></a>
                	<ul class="dropdown-menu">
                		<li><a href="<?php echo HOME;?>user/history/manga">Truyện tranh </a></li>
                	</ul>
               	</li>
            </ul>
   	<?php echo common_render_desktop_nav_right();?>
        </div>
        <!-- /.navbar-collapse -->
    </nav>
    <!-- End Main Nav -->


 	 <div style="max-width:1100px; margin:auto">
    	<a href="<?= HOME; ?>"><img style="width: 100%; height: auto; max-width:403px;" src="public/images/logo-small.png" alt="Truyencuatui.com logo" height="100" /></a>
    </div>
    <div class="clearfix"></div>

	<!-- Start Sub Navbar -->

	<!-- Start Sub Navbar -->
    
<ul class="sky-mega-menu sky-mega-menu-anim-flip sky-mega-menu-response-to-stack navbar-2">
				<!-- home -->
                  <li class="sub_home_manga">
					<a href="<?php echo HOME?>blog"><i class="fa fa-home"></i><b style="font-size:16px"> BLOG</b></a>
				</li>
                		
                <li>
					<a href="<?php echo HOME.'blog/c2/Thong-bao-huong-dan' ?>">THÔNG BÁO</a>
				</li>
                 <li>
					<a href="<?php echo HOME.'blog/s9/Tin-tuc' ?>">BẢN TIN</a>
				</li>
                  <li>
					<a href="<?php echo HOME.'blog/c8/Otaku-Paradise' ?>">OTAKU ROOM</a>
				</li>
                 <li>
					<a href="<?php echo HOME.'blog/c16/Nhom-dich' ?>">NHÓM DỊCH</a>
				</li>
                 <li>
					<a href="<?php echo HOME.'blog/c19/giao-luu-ket-ban' ?>">GIAO LƯU KẾT BẠN</a>
				</li>
                <?php if(isset($_SESSION['user'])){?>
                 <li>
					<a href="<?php echo HOME.'index.php?module=manage&act=blog&opt=post' ?>"><i class="fa fa-cloud-upload"></i> CHIA SẺ BÀI VIẾT</a>
				</li>
                <?php }else{?>
                 <li>
					<a href="<?php echo LOGIN; ?>" onClick="alert('Xin vui lòng đăng nhập để chia sẻ bài viết');"><i class="fa fa-cloud-upload"></i> CHIA SẺ BÀI VIẾT</a>
				</li>
                <?php }?>
			<!-- search form -->
				<li class="right search">					
					<form name="search-blog" action="<?= HOME; ?>blog/search/" method="get" id="search-blog">					
						<div class="input" style="margin-top:4px">
							<button type="submit" id="search-blog-submit" class="button">Tìm Bài Viết</button>
							<input type="text" id="search-blog-text" placeholder="Bài viết ..." value="" />
						</div>					
					</form>
					<script type="text/javascript">
						$(document).ready(function(){
							$('#search-blog-submit').on('click', function(e){
								e.preventDefault();
								if(!$('#search-blog-text').val().length){
									
									$('#search-blog-text').attr('placeholder', "Nhập từ khóa");
									//alert('co');
									//$('#search-blog').submit();
								}else{
									
									window.location.href = '<?= HOME; ?>blog/search/' + $('#search-blog-text').val()
									

								}
								
							});
						});
					</script>
				</li>
				<!--/ search form -->
			
			</ul>

    <!--End sub navbar-->
    </div> <!-- End wrap header class --> 	
	

	<div style="height:10px"></div>
 <?php }?> 
 <div id="wrap-content">  